﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<JLL.China.Infrastructure.Repositories.LINQ2SQL.Form>" %>

    <div id="step-holder">
        <div class="step-no">
            1</div>
        <div class="step-dark-left">
            Edit Form Email</div>
        <div class="step-dark-Round">
            &nbsp;</div>
        <div class="clear">
        </div>
    </div>
    <!--  end step-holder -->
    <!-- start id-form -->
    <% using (Html.BeginForm("Edit", "FormEmail", FormMethod.Post, new { id = "formID", @class = "validateforms" }))
       { %>
    <% = Html.HiddenFor(x => x.Form_ID)%>
    
    <input type="hidden" name="Admin.IsSupperAdmin" value="false"/>
    <table border="0" cellpadding="0" cellspacing="0" class="tbl-form">
        <!-- start admin profile -->
        
        <tr>
            <th  width="100px">
                <span class="mandate">*</span> Form Name:
            </th>
            <td>
                
                <%= Html.TextBoxFor(model => model.FormName, new { id = "name", @class = "validate[required] inp-form", style = "width:350px;" ,@readonly="readonly"})%>
                
            </td>
            <td>
            </td>
        </tr>
        
        <tr>
            <th  name="status" id="status" class="required" width="100px">
                <span class="mandate">*</span> Email:
            </th>
            <td>
                <div class="select_holder">
                    <%= Html.TextBoxFor(m => m.AdminAddress, new { name = "email", id = "email", @class = "validate[required,custom[email]] inp-form", style = "width:350px;" })%>
                </div>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <th  name="status" id="Th1" class="required" width="100px">
                &nbsp;Description:
            </th>
            <td>
                <div class="select_holder">
                       <%= Html.TextAreaFor(m => m.Description, new { name = "description", id = "description", @class = "inp-form", style = "width:350px;" })%>
                </div>
            </td>
            <td>
            </td>
        </tr>
        <!-- end admin -->
        <tr>
            <td colspan="3">
                &nbsp;
            </td>
        </tr>
   
        <tr>
            <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
            <th>
                &nbsp;
            </th>
            <td >
                <input type="submit" value="Submit"  onclick="checkForm();" class="buttons" style="margin-right:8px;float:right" />
                <input type="reset" value="Reset"  class="buttons" style="margin-right:8px;float:right"/>
            </td>
            <td style="width: 42%;">
            </td>
        </tr>
    </table>
    <%} %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>


